Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify the handling of error messages #566

Merged
merged 3 commits into from
May 8, 2019

Conversation

shankari
Copy link
Contributor

@shankari shankari commented May 8, 2019

  • Define a new function (displayError) that deals with undefined messages,
    formatting the error stack, etc.
  • Replace all .catch(function(error)) calls with a call to displayError so that
    we can:
    • have a unified format that we can modify in one location
    • display meaningful error messages that should make it easier to figure out
      what is wrong.

This makes the error message from e-mission/e-mission-docs#378
more meaningful

shankari added 3 commits May 7, 2019 20:58
- Define a new function (displayError) that deals with undefined messages,
  formatting the error stack, etc.
- Replace all .catch(function(error)) calls with a call to displayError so that
  we can:
  - have a unified format that we can modify in one location
  - display meaningful error messages that should make it easier to figure out
    what is wrong.

This makes the error message from e-mission/e-mission-docs#378
more meaningful
- Define a new function (displayError) that deals with undefined messages,
  formatting the error stack, etc.
- Replace all .catch(function(error)) calls with a call to displayError so that
  we can:
  - have a unified format that we can modify in one location
  - display meaningful error messages that should make it easier to figure out
    what is wrong.

This makes the error message from e-mission/e-mission-docs#378
more meaningful

Bonus fix: fix the formatting in e-mission@94ffa9f I am not sure how this ever worked!
@shankari
Copy link
Contributor Author

shankari commented May 8, 2019

Before this change After this change
Simulator Screen Shot - iPhone 7 - 2019-05-07 at 21 04 20 Simulator Screen Shot - iPhone 7 - 2019-05-07 at 21 03 03

@shankari shankari merged commit 1173454 into e-mission:master May 8, 2019
@shankari shankari changed the title Unify the handling of error messages + fix error during force sync Unify the handling of error messages May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant